import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router';
import iView from 'iview';
import 'iview/dist/styles/iview.css';    // 使用 CSS
import {routes} from './routes';
import axios from 'axios';
import VueAxios from 'vue-axios';
import {store} from './store';
import VueQuillEditor from 'vue-quill-editor'//引入评论模块编辑器

Vue.use(VueQuillEditor)//使用编辑器
Vue.use(VueRouter);
Vue.use(iView);
Vue.use(VueAxios, axios);

axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

const router = new VueRouter({
  routes:routes,
  mode:'history'
});

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
